package patterns.facable;

/**
 * Created by lenovo on 2016/11/25 0025.
 * 外观类，持有Shape接口的几个对象，并实现不同的方法，统一对外。
 */
public class ShapeMaker {
    private IShape circle;
    private IShape square;
    private IShape rect;

    public ShapeMaker(){
        circle = new Circle();
        square = new Square();
        rect = new Rectangle();
    }
    public void drawCircle(){
        circle.draw();
    }
    public void drawSquare(){
        square.draw();
    }
    public void drawRect(){
        rect.draw();
    }
}
